﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;
using static Domain.Entitys.Inv.Trf_selectDto;

namespace Domain.Entitys.Inv
{

    public class Samp_SelectDto
    {

        public int Samp_id { get; set; }
        public string Samp_type { get; set; }
        public DateTime? Samp_startdate { get; set; }
        public string Samp_code { get; set; }
        //抽检员
        public string Samp_inspector { get; set; }
        public string Warehouse_code { get; set; }
        public string Warehouse_name { get; set; }
        //检测结果
        public string Samp_results { get; set; }
        //是否入库
        //public char Samp_is_stored { get; set; }

        public char? Samp_audit_status { get; set; }
   
        public string Samp_audit_opinion { get; set; }

        // 明细字段（可选）
        public List<InvprodInfo> Details { get; set; }

        //明细
        public class InvprodInfo
        {
       
            public int Samp_id { get; set; }
            public string Pro_name { get; set; }
            public string Pro_code { get; set; }
            public string Pro_brand { get; set; }
            public string Pro_model { get; set; }
            public string Unitmeas_id { get; set; }
            public decimal Samp_numder { get; set; }
        }
    }
}
